import {Loading,LoadingController,ToastController } from 'ionic-angular';
export class baseUi{
    constructor(){}
    protected showLoading(loadingCtrl:LoadingController,message:string):Loading{
        let loading=loadingCtrl.create({
            content:message,
            dismissOnPageChange:true
        });
        loading.present();
        return loading;
    }
    protected showToast(toastCtrl:ToastController,message:string){
        let toast=toastCtrl.create({
            message:message,
            duration:3000,
            position:'bottom'
        })
        toast.present();
        return toast;
    }

}